﻿using System.IO.IsolatedStorage;

namespace Pomodoro.Helpers
{
    public static class Settings
    {
        public static void Save(string key, object value)
        {

            if (IsolatedStorageSettings.ApplicationSettings.Contains(key))
            {
                IsolatedStorageSettings.ApplicationSettings[key] = value;
            }
            else
            {
                IsolatedStorageSettings.ApplicationSettings.Add(key, value);
            }

            IsolatedStorageSettings.ApplicationSettings.Save();
        }

    }
}
